package com.matrix.lbs.converter;

import com.matrix.api.lbs.vo.NearbyShopWithInfoVO;
import com.matrix.lbs.model.ShopLocationDoc;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author 有点甜
 * @since 2025/8/5
 */
@Mapper
public interface LbsConverter {

    LbsConverter INSTANCE = Mappers.getMapper(LbsConverter.class);

    @Mapping(target = "distance", ignore = true)
    @Mapping(target = "recommendationScore", ignore = true)
    NearbyShopWithInfoVO toNearbyShopWithInfoVO(ShopLocationDoc doc);
}
